﻿@if (User.Identity?.IsAuthenticated == true)
{
    <form asp-area="" asp-controller="Home" asp-action="Logout" method="post" id="logoutForm">
        <ul class="nav navbar-nav navbar-right">
            <li>
                <a asp-area="" asp-controller="Home" asp-action="Manage" style="display:block;padding-top:6px;">Hello @User.Identity.Name!</a>
            </li>
            <li>
                <button type="submit" class="btn btn-link navbar-btn navbar-link">Log out</button>
            </li>
        </ul>
    </form>
}
else
{
    <ul class="nav navbar-nav navbar-right">
        <li>
            <a asp-area="" asp-controller="Home" asp-action="Login">Log in</a>
        </li>
    </ul>
}
